﻿capital = 275
set_research_slots = 5
2000.1.1 = {
	if = {
		limit = { has_dlc = "No Step Back" }

		set_oob = "SAF_2000_nsb"
	}
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }

		set_oob = "SAF_2000_nonnsb"
	}
	set_cosmetic_tag = SAF
	set_country_flag = dynamic_flag
	set_country_flag = dynamic_rebel_flag
	set_country_flag = dynamic_flag_edgy
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_naval_oob = "SAF_2000_naval_mtg"
		else = {
			set_naval_oob = "SAF_2000_naval_legacy"
		}
	}

	set_convoys = 25

	add_ideas = {
		#pop_050
		unrestrained_corruption
		christian

		AU_member
		stagnation
		defence_01
		edu_03
		health_03
		social_03
		bureau_03
		police_02
		rentier_state
		export_economy
		volunteer_army
		volunteer_women
		intervention_limited_interventionism
		USA_usaid #https://explorer.usaid.gov/aid-dashboard.html
		industrial_conglomerates
		landowners
		small_medium_business_owners
		#hybrid
		commonwealth_of_nations_member
		#tax_cost_23
		multi_ethnic_state_idea
		officer_advanced_training
		rising_level_of_aids
	}

	# Starting tech
	set_technology = {
		integrated_transportation_system = 1
		post_conventional_rail = 1
		early_freight_locomotive = 1

		legacy_doctrines = 1
		superior_firepower = 1

		infantry_weapons = 1
		infantry_weapons1 = 1
		infantry_weapons2 = 1
		infantry_weapons3 = 1 #Vektor CR-21
		support_weapons = 1
		support_weapons2 = 1
		tandem_charge_warheads = 1
		squad_automatic_weapon = 1
		special_forces = 1

		combat_eng_equipment = 1

		night_vision_1 = 1
		night_vision_2 = 1
		night_vision_3 = 1 #1985

		command_control_equipment = 1
		command_control_equipment1 = 1
		command_control_equipment2 = 1

		land_Drone_equipment = 1
		land_Drone_equipment1 = 1

		Anti_tank_0 = 1
		Heavy_Anti_tank_0 = 1
		AT_upgrade_1 = 1
		AT_upgrade_2 = 1
		Anti_tank_1 = 1
		Heavy_Anti_tank_1 = 1
		Anti_tank_2 = 1 #ZT3 IPLS
		Heavy_Anti_tank_2 = 1 #ZT3 Iklwa

		Anti_Air_0 = 1
		SP_Anti_Air_0 = 1

		artillery_0 = 1
		Arty_upgrade_1 = 1
		artillery_1 = 1 #G5
		SP_arty_0 = 1
		SP_arty_1 = 1
		SP_R_arty_0 = 1
		SP_R_arty_1 = 1	#Valkiri Mk1

		Early_APC = 1 #Vehicle Design

		util_vehicle_0 = 1
		util_vehicle_1 = 1
		util_vehicle_2 = 1
		util_vehicle_3 = 1	#Mamba

		Rec_tank_0 = 1
		Rec_tank_1 = 1
		Rec_tank_2 = 1 #Rooikat 76

		APC_1 = 1
		APC_2 = 1
		APC_3 = 1
		APC_4 = 1	#Matador

		early_helicopter = 1
		attack_helicopter1 = 1
		attack_helicopter2 = 1		#Rooivalk

		transport_helicopter1 = 1
		transport_helicopter2 = 1 #Atlas Oryx

		L_Strike_fighter1 = 1
		L_Strike_fighter2 = 1 #AHRLAC

		Air_UAV1 = 1 #Seeker 400 UAS

		MR_Fighter1 = 1 #Atlas Cheetah


		body_armor_1980 = 1
		camouflage = 1
		camouflage2 = 1

		basic_computing = 1
		integrated_circuit = 1
		computing1 = 1
		decryption1 = 1
		encryption1 = 1

		radar = 1
		internet1 = 1
		internet2 = 1
		fuel_silos = 1
	}
	if = {
		limit = { has_dlc = "No Step Back" }

		set_technology = {
			mbt_tech = 1
			mbt_tech_1 = 1
			tank_components_tech = 1
			tank_components_tech_2 = 1
			small_medium_gun_tech = 1
			medium_gun_tech = 1
			armor_tech = 1
			era_tech = 1
			diesel_engine_tech = 1
			diesel_engine_tech_2 = 1
		}
	}
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }

		set_technology = {
			MBT_1 = 1
			MBT_2 = 1
		}
	}
	if = {
		limit = {
			not = { has_dlc = "Man the Guns" }
		}
		set_technology = {
			diesel_attack_submarine_1 = 1
			landing_craft = 1
		}
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_technology = {
			corvette_hull_1 = 1
			corvette_hull_2 = 1

			frigate_hull_1 = 1

			destroyer_hull_1 = 1
			destroyer_hull_2 = 1

			cruiser_hull_1 = 1

			attack_submarine_hull_1 = 1
			attack_submarine_hull_2 = 1

			missile_submarine_hull_1 = 1

			aircraft_carrier_engineering = 1
			aircraft_heli_engineering_1 = 1

			tech_submarine_engineering = 1

			tech_naval_systems_engineering = 1
			tech_power_systems = 1

			tech_combat_support_systems = 1
			tech_fire_control = 1
			tech_fire_control_1 = 1
			tech_combat_radar = 1
			tech_combat_radar_1 = 1
			tech_combat_sonar = 1
			tech_combat_sonar_1 = 1

			tech_early_naval_weapon_systems = 1
			tech_naval_weapon_systems = 1
			tech_light_guns = 1
			tech_light_guns_1 = 1
			tech_127mm_guns = 1

			tech_point_defense_system = 1
			tech_point_defense_system_1 = 1
			tech_point_defense_system_2 = 1

			tech_missile_systems = 1
			tech_turret_missiles_surface = 1

			tech_turret_missiles_aa = 1

			tech_vls_surface = 1

			tech_vls_aa = 1

			tech_torpedoes = 1
			tech_torpedoes_1 = 1

			tech_mtg_landing_craft = 1
		}
	}
	set_variable = { industrial_conglomerates_opinion = 60 }
	set_variable = { landowners_opinion = 60 }
	set_variable = { small_medium_business_owners = 75 }

	#Investment targets
	add_to_array = { SAF.investment_targets = LES }
	add_to_array = { SAF.investment_targets = SWA }
	add_to_array = { SAF.investment_targets = NAM }
	add_to_array = { SAF.investment_targets = ZIM }
	add_to_array = { SAF.investment_targets = ZAM }
	add_to_array = { SAF.investment_targets = MOZ }
	#Botswana added through Botswanan focus tree

	#Influence system
	init_influence = yes
	set_variable = { domestic_influence_amount = 270 }
	add_to_array = { influence_array = ENG.id }
	add_to_array = { influence_array_val = 50 }
	add_to_array = { influence_array = USA.id }
	add_to_array = { influence_array_val = 20 }
	add_to_array = { influence_array = CAN.id }
	add_to_array = { influence_array_val = 5 }
	add_to_array = { influence_array = CHI.id }
	add_to_array = { influence_array_val = 40 }
	add_to_array = { influence_array = SOV.id }
	add_to_array = { influence_array_val = 5 }
	add_to_array = { influence_array = SAU.id }
	add_to_array = { influence_array_val = 5 }
	startup_influence = yes

	### Economy
	set_variable = { var = debt value = 175 }
	set_variable = { var = treasury value = 11 }
	set_variable = { var = corporate_tax_rate value = 27 }
	set_variable = { var = population_tax_rate value = 21 }
	set_variable = { var = int_investments value = 8 }


	set_popularities = {
		democratic = 23.7
		communism = 66.3
		fascism = 0.0
		neutrality = 10.0
		nationalist = 0.0
	}
	set_politics = {
		ruling_party = communism
		last_election = "2000.1.1"
		election_frequency = 48
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0.069 } #conservatism
	set_variable = { party_pop_array^2 = 0.108 } #liberalism
	set_variable = { party_pop_array^3 = 0.06 } #socialism
	set_variable = { party_pop_array^4 = 0 } #Communist-State
	set_variable = { party_pop_array^5 = 0.663 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0.1 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0 } #Neutral_green
	set_variable = { party_pop_array^18 = 0.0 } #neutral_Social
	set_variable = { party_pop_array^19 = 0 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 5 }

	startup_politics = yes

	create_country_leader = {
		name = "Thabo Mbeki"
		picture = "thabo_mbeki.dds"
		ideology = anarchist_communism
		traits = {
			emerging_anarchist_communism
		}
	}
	set_variable = { term_limit = 2 }
	set_variable = { current_term = 1 }

    recruit_character = SAF_david_jamieson
	recruit_character = SAF_samuel_hlongwane
	recruit_character = SAF_carlo_gagiano
	recruit_character = SAF_willis_nkosi
	recruit_character = SAF_solly_shoke
	recruit_character = SAF_fabian_msimang
	recruit_character = SAF_hanno_teuteberg
	recruit_character = SAF_jabu_mbuli

	#############################################
	#MTG Variants
	##############
	#if = {
	#	limit = { has_dlc = "Man the Guns" }
	#}
	#############################################

	if = {
		limit = { has_dlc = "No Step Back" }

		create_equipment_variant = {
			name = "Olifant-1"
			type = mbt_hull_0
			parent_version = 0
			modules = {
				main_armament_slot = tank_small_medium_cannon_2
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension
				armor_type_slot = tank_steel_armor_gen2
				engine_type_slot = tank_diesel_engine_gen2
				reload_type_slot = manual_loading
				special_type_slot_1 = additional_machine_guns
				special_type_slot_2 = smoke_launchers
				special_type_slot_4 = tank_battlestation_2
			}
			upgrades = {
				tank_nsb_armor_upgrade = 6
			}
			obsolete = yes
			icon = "GFX_ENG_MBT_1"
		}
	}
}

2017.1.1 = {
	capital = 275
	if = {
		limit = { has_dlc = "No Step Back" }

		set_oob = "SAF_2017_nsb"
	}
	if = {
		limit = { NOT = { has_dlc = "No Step Back" } }

		set_oob = "SAF_2017_nonnsb"
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_naval_oob = "SAF_2017_naval_mtg"
		else = {
			set_naval_oob = "SAF_2017_naval_legacy"
		}
	}
	set_convoys = 25

	remove_ideas = {
		rising_level_of_aids
	}

	add_ideas = {
		#pop_050
		unrestrained_corruption
		christian

		stagnation
		defence_01
		edu_03
		health_03
		social_03
		bureau_03
		police_02
		rentier_state
		export_economy
		volunteer_army
		volunteer_women
		intervention_limited_interventionism
		USA_usaid #https://explorer.usaid.gov/aid-dashboard.html
		industrial_conglomerates
		landowners
		small_medium_business_owners
		#hybrid
		#tax_cost_30
		multi_ethnic_state_idea
		high_level_of_aids
	}

	#set_country_flag =
	set_variable = { industrial_conglomerates_opinion = 60 }
	set_variable = { landowners_opinion = 60 }
	set_variable = { small_medium_business_owners = 75 }

	#Nat focus



	# Starting tech
	set_technology = {
		legacy_doctrines = 1
		superior_firepower = 1

		infantry_weapons = 1
		infantry_weapons1 = 1
		infantry_weapons2 = 1
		infantry_weapons3 = 1 #Vektor CR-21

		combat_eng_equipment = 1

		night_vision_1 = 1
		night_vision_2 = 1
		night_vision_3 = 1 #1985

		command_control_equipment = 1
		command_control_equipment1 = 1
		command_control_equipment2 = 1
		command_control_equipment3 = 1 #2005

		land_Drone_equipment = 1
		land_Drone_equipment1 = 1
		land_Drone_equipment2 = 1 #2005

		Anti_tank_0 = 1
		Heavy_Anti_tank_0 = 1
		AT_upgrade_1 = 1
		AT_upgrade_2 = 1
		Anti_tank_1 = 1
		Heavy_Anti_tank_1 = 1
		Anti_tank_2 = 1 #ZT3 IPLS
		Heavy_Anti_tank_2 = 1 #ZT3 Iklwa

		Anti_Air_0 = 1
		SP_Anti_Air_0 = 1
		AA_upgrade_1 = 1

		artillery_0 = 1
		Arty_upgrade_1 = 1
		artillery_1 = 1 #G5
		SP_arty_0 = 1
		SP_arty_1 = 1
		SP_R_arty_0 = 1
		SP_R_arty_1 = 1
		SP_arty_2 = 1 #GV6 Renoster
		SP_R_arty_2 = 1 #alkiri Mk2

		Early_APC = 1 #Vehicle Design

		util_vehicle_0 = 1
		util_vehicle_1 = 1
		util_vehicle_2 = 1
		util_vehicle_3 = 1
		util_vehicle_4 = 1 #2005
		util_vehicle_5 = 1 #RG-35

		Rec_tank_0 = 1
		Rec_tank_1 = 1
		Rec_tank_2 = 1 #Rooikat 76

		IFV_1 = 1
		IFV_2 = 1
		IFV_3 = 1
		IFV_4 = 1
		IFV_5 = 1 #Badger

		APC_1 = 1
		APC_2 = 1
		APC_3 = 1
		APC_4 = 1
		APC_5 = 1 #Mbombe

		early_helicopter = 1
		attack_helicopter1 = 1
		attack_helicopter2 = 1
		attack_helicopter3 = 1 #Mi-24 SuperHind Mk.V

		transport_helicopter1 = 1
		transport_helicopter2 = 1 #Atlas Oryx

		L_Strike_fighter1 = 1
		L_Strike_fighter2 = 1 #AHRLAC

		Air_UAV1 = 1 #Seeker 400 UAS

		MR_Fighter1 = 1 #Atlas Cheetah

		body_armor_2000 = 1

		microprocessors = 1
		computing2 = 1
		decryption2 = 1
		encryption2 = 1
		computing3 = 1
		decryption3 = 1
		encryption3 = 1
		DNA_fingerprinting = 1
		gprs = 1
		wifi = 1
		internet3 = 1	#3G
		edge = 1
		umts = 1
		hsupa = 1
		internet4 = 1	#4G
		lte = 1
	}
	if = {
		limit = {
			not = { has_dlc = "Man the Guns" }
		}
		set_technology = {
			frigate_1 = 1
			diesel_attack_submarine_1 = 1

			landing_craft = 1
		}
	}
	if = {
		limit = {
			has_dlc = "Man the Guns"
		}
		set_technology = {
			corvette_hull_1 = 1
			corvette_hull_2 = 1
			corvette_hull_3 = 1

			frigate_hull_1 = 1
			frigate_hull_2 = 1
			frigate_hull_3 = 1
			frigate_hull_4 = 1

			destroyer_hull_1 = 1
			destroyer_hull_2 = 1

			cruiser_hull_1 = 1

			attack_submarine_hull_1 = 1
			attack_submarine_hull_2 = 1
			attack_submarine_hull_3 = 1

			aircraft_carrier_engineering = 1
			aircraft_heli_engineering_1 = 1

			tech_submarine_engineering = 1

			tech_naval_systems_engineering = 1
			tech_power_systems = 1
			tech_power_systems_1 = 1

			tech_combat_support_systems = 1
			tech_fire_control = 1
			tech_fire_control_1 = 1
			tech_fire_control_2 = 1
			tech_combat_radar = 1
			tech_combat_radar_1 = 1
			tech_combat_radar_2 = 1
			tech_combat_sonar = 1
			tech_combat_sonar_1 = 1
			tech_combat_sonar_2 = 1

			tech_naval_weapon_systems = 1
			tech_light_guns = 1
			tech_light_guns_1 = 1
			tech_light_guns_2 = 1
			tech_127mm_guns = 1
			tech_127mm_guns_1 = 1

			tech_point_defense_system = 1
			tech_point_defense_system_1 = 1
			tech_point_defense_system_2 = 1
			tech_point_defense_system_3 = 1

			tech_missile_systems = 1
			tech_turret_missiles_surface = 1
			tech_turret_missiles_surface_1 = 1

			tech_turret_missiles_aa = 1
			tech_turret_missiles_aa_1 = 1
			tech_turret_missiles_aa_2 = 1

			tech_vls_surface = 1
			tech_vls_surface_1 = 1

			tech_vls_aa = 1
			tech_vls_aa_1 = 1

			tech_torpedoes = 1
			tech_torpedoes_1 = 1
			tech_torpedoes_2 = 1

			tech_mtg_landing_craft = 1
		}
	}
	### Economy
	set_variable = { var = debt value = 226 }
	set_variable = { var = treasury value = 47 }
	set_variable = { var = int_investments value = 37 }
	set_variable = { var = corporate_tax_rate value = 27 }
	set_variable = { var = population_tax_rate value = 21 }


	set_popularities = {
		democratic = 26.8
		communism = 68.6
		fascism = 0.0
		neutrality = 2.4
		nationalist = 2.2
	}
	set_politics = {

		ruling_party = communism
		last_election = "2014.5.7"
		election_frequency = 60
		elections_allowed = yes
	}

	start_politics_input = yes

	### Party Popularities
	set_variable = { party_pop_array^0 = 0 } #Western_Autocracy
	set_variable = { party_pop_array^1 = 0.03 } #conservatism
	set_variable = { party_pop_array^2 = 0.228 } #liberalism
	set_variable = { party_pop_array^3 = 0.01 } #socialism
	set_variable = { party_pop_array^4 = 0.064 } #Communist-State
	set_variable = { party_pop_array^5 = 0.622 } #anarchist_communism
	set_variable = { party_pop_array^6 = 0 } #Conservative
	set_variable = { party_pop_array^7 = 0.0 } #Autocracy
	set_variable = { party_pop_array^8 = 0 } #Mod_Vilayat_e_Faqih
	set_variable = { party_pop_array^9 = 0 } #Vilayat_e_Faqih
	set_variable = { party_pop_array^10 = 0 } #Kingdom
	set_variable = { party_pop_array^11 = 0 } #Caliphate
	set_variable = { party_pop_array^12 = 0 } #Neutral_Muslim_Brotherhood
	set_variable = { party_pop_array^13 = 0 } #Neutral_Autocracy
	set_variable = { party_pop_array^14 = 0.024 } #Neutral_conservatism
	set_variable = { party_pop_array^15 = 0 } #oligarchism
	set_variable = { party_pop_array^16 = 0 } #Neutral_Libertarian
	set_variable = { party_pop_array^17 = 0 } #Neutral_green
	set_variable = { party_pop_array^18 = 0.0 } #neutral_Social
	set_variable = { party_pop_array^19 = 0 } #Neutral_Communism
	set_variable = { party_pop_array^20 = 0.022 } #Nat_Populism
	set_variable = { party_pop_array^21 = 0 } #Nat_Fascism
	set_variable = { party_pop_array^22 = 0 } #Nat_Autocracy
	set_variable = { party_pop_array^23 = 0 } #Monarchist

	### Ruling Party
	add_to_array = { ruling_party = 5 }

	startup_politics = yes

	create_country_leader = {
		name = "Jacob Zuma"
		picture = "Jacob_Zuma.dds"
		ideology = anarchist_communism
		traits = {
			spy
			emerging_anarchist_communism
			narcissist
			greedy
			rash
		}
	}
	set_variable = { current_term = 2 }

	recruit_character = SAF_thomas_vusi
	recruit_character = SAF_lindile_yam

	create_equipment_variant = {
		name = "RG-32 Scout"
		type = util_vehicle_4
		upgrades = {
		}
	}

	create_equipment_variant = {
		name = "Marauder"
		type = util_vehicle_5
		upgrades = {
		}
	}
	#############################################
	#MTG Variants
	##############
	if = {
		limit = { has_dlc = "Man the Guns" }

		#Valour Class https://en.wikipedia.org/wiki/Valour-class_frigate
		create_equipment_variant = {
			name = "Valour Class"
			type = frigate_hull_3
			#name_group = SAF_DD_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_light_surface_jet_turbine_power
				fixed_ship_fire_control_system_slot = module_digital_integrated_fire_control
				fixed_ship_radar_slot = module_radar_3
				fixed_ship_auxillary_slot_2 = module_vls_sam_2
				fixed_ship_auxillary_slot_1 = module_torpedoes_3
				fixed_ship_auxillary_slot = module_chain_gun
				fixed_ship_battery_slot = module_76mm_gun_2
				front_1_custom_slot = module_asm_3
				rear_1_custom_slot = module_light_helipad_2
			}
		}
		#Heroine Class https://en.wikipedia.org/wiki/Heroine-class_submarine
		create_equipment_variant = {
			name = "Heroine Class"
			type = attack_submarine_hull_3
			#name_group = SAF_SS_HISTORICAL
			parent_version = 0
			modules = {
				fixed_ship_engine_slot = module_sub_diesel_electric_power
				fixed_ship_radar_slot = module_sonar_4
				fixed_ship_auxillary_slot_3 = module_torpedoes_3
				fixed_ship_auxillary_slot_2 = module_fuel_tank
				fixed_ship_auxillary_slot_1 = module_torpedoes_3
				fixed_ship_auxillary_slot = module_vls_sub_asm_2
				fixed_ship_battery_slot = module_anti_ship_torpedoes_3
			}
		}
	}
	#############################################

	if = {
		limit = { has_dlc = "No Step Back" }

		create_equipment_variant = {
			name = "Olifant-2"
			type = mbt_hull_0
			parent_version = 1
			modules = {
				main_armament_slot = tank_small_medium_cannon_2
				turret_type_slot = tank_base_tank_turret
				suspension_type_slot = tank_torsion_bar_suspension
				armor_type_slot = tank_steel_armor_gen2
				engine_type_slot = tank_diesel_engine_gen3
				reload_type_slot = manual_loading
				special_type_slot_1 = additional_machine_guns
				special_type_slot_2 = smoke_launchers
				special_type_slot_4 = tank_battlestation_3
			}
			upgrades = {
				tank_nsb_armor_upgrade = 6
			}
			obsolete = yes
			icon = "GFX_ENG_MBT_1"
		}
	}
}